VPATH = ../STIP/ ../HOG/  ../SVM/ ../HOF/ ../common/ ../MEI/ ../K-means/ ../SIFT/
OBJECTS = stip.o ImageGradient.o HOGcache.o calculateFeatures.o MainProgram.o svmTrain.o svm.o svmClassify.o visualVideo.o histogramOfOpticFlow.o common.o MEI.o k-means.o sift.o 
CPP = g++ 
CPPFLAGS = `pkg-config --cflags opencv`
CPPLIBS = `pkg-config --libs opencv`

MainProgram:$(OBJECTS)
	$(CPP) -g -o $@ $(OBJECTS) $(CPPLIBS)
$(OBJECTS):%.o : %.cpp 
	$(CPP) -g -c $< -o $@ $(CPPFLAGS) 
.PHONY: clean
clean:
	rm -rf $(OBJECTS) 
	cd ../STIP/ ;rm -rf $(OBJECTS)
	cd ../HOG/ ;rm -rf $(OBJECTS)
	cd ../SVM/ ;rm -rf $(OBJECTS)
	cd ../HOF/ ; rm -rf $(OBJECTS) 
